home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Tcl / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-07-22  |  1.8 KB  |  74 lines

  1. #
  2. # This Makefile permits to build a subset of libtcl.a. This subset contains
  3. # unmodified functions of the original Tcl distribution which are used in 
  4. # the STk interpreter. Thoses functions are principally utilities functions
  5. # such as hash tables, regexp, unix utilities
  6. #
  7.  
  8. include ../config.make
  9.  
  10. CFLAGS = $(STKCFLAGS) $(DFLGS) -I. -I.. @DEFS@
  11. OBJ    = panic.o tclHash.o tclGet.o regexp.o tclAsync.o tclUtil.o \
  12.      tclNotify.o @LIBOBJS@
  13. EVOBJ  = tclEvent.o tclUnixNotfy.o tclUnixTime.o  tclPreserve.o
  14.  
  15. all: libtcl.a libevtcl.a
  16.  
  17. libtcl.a: $(OBJ) 
  18.     rm -f libtcl.a
  19.     ar q libtcl.a $(OBJ)
  20.     $(RANLIB) libtcl.a
  21.  
  22. libevtcl.a: $(EVOBJ) 
  23.     rm -f libevtcl.a
  24.     ar q libevtcl.a $(EVOBJ)
  25.     $(RANLIB) libevtcl.a
  26.  
  27. install: all
  28.  
  29. install.libs: install
  30.     -if [ ! -d $(execdir) ] ; then mkdir -p $(execdir); fi 
  31.     $(CP) libtcl.a $(execdir)
  32.     $(RANLIB) $(execdir)/libtcl.a
  33.     -if [ ! -d $(incdir) ] ; then mkdir -p $(incdir); fi
  34.     $(CP) tcl.h tclInt.h tclRegexp.h $(incdir)
  35.  
  36. clean: 
  37.     @rm -f *.a *.o core *~ Makefile config.*
  38.  
  39. # Files which must be generated if system does not provide the function they
  40. # implement
  41.  
  42. getcwd.o: ./compat/getcwd.c
  43.     $(CC) -c $(CFLAGS) ./compat/getcwd.c
  44.  
  45. opendir.o: ./compat/opendir.c
  46.     $(CC) -c $(CFLAGS) ./compat/opendir.c
  47.  
  48. strerror.o: ./compat/strerror.c
  49.     $(CC) -c $(CFLAGS) ./compat/strerror.c
  50.  
  51. strstr.o: ./compat/strstr.c
  52.     $(CC) -c $(CFLAGS) ./compat/strstr.c
  53.  
  54. strtod.o: ./compat/strtod.c
  55.     $(CC) -c $(CFLAGS) ./compat/strtod.c
  56.  
  57. strtol.o: ./compat/strtol.c
  58.     $(CC) -c $(CFLAGS) ./compat/strtol.c
  59.  
  60. strtoul.o: ./compat/strtoul.c
  61.     $(CC) -c $(CFLAGS) ./compat/strtoul.c
  62.  
  63. tmpnam.o: ./compat/tmpnam.c
  64.     $(CC) -c $(CFLAGS) ./compat/tmpnam.c
  65.  
  66. waitpid.o: ./compat/waitpid.c
  67.     $(CC) -c $(CFLAGS) ./compat/waitpid.c
  68.  
  69. fixstrtod.o: ./compat/fixstrtod.c
  70.     $(CC) -c $(CFLAGS) ./compat/fixstrtod.c
  71.  
  72. strncasecmp.o: ./compat/strncasecmp.c
  73.     $(CC) -c $(CFLAGS) ./compat/strncasecmp.c
  74.